package org.seckill.dao;

/**
 * Created by Administrator on 2017/3/30.
 */
import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.seckill.entity.Seckill;

import javax.annotation.Resource;


public interface SeckillDao {

    //减库存
    int reduceNumber(@Param("seckillId")long seckillId,@Param("killTime")Date killTime);

    //根据ID查询秒杀对象
    Seckill queryById(long seckillId);

    //根据偏移量查询秒杀商品列表
    List<Seckill> queryAll(@Param("offset") int offet,@Param("limit") int limit);

}
